package com.ruoyi.core.service;

import java.util.List;

import com.aliyuncs.exceptions.ClientException;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.core.domain.ExpressOrders;
import com.ruoyi.core.domain.Orders;

import javax.servlet.http.HttpServletRequest;

/**
 * 快递发货Service接口
 * 
 * @author lgc
 * @date 2020-08-10
 */
public interface IOrdersService 
{
    /**
     * 查询快递发货
     * 
     * @param ordersId 快递发货ID
     * @return 快递发货
     */
    public Orders selectOrdersById(String ordersId);

    /**
     * 查询快递发货列表
     * 
     * @param orders 快递发货
     * @return 快递发货集合
     */
    public List<Orders> selectOrdersList(Orders orders);

    /**
     * 新增快递发货
     * 
     * @param orders 快递发货
     * @return 结果
     */
    public Orders insertOrders(Orders orders);

    /**
     * 修改快递发货
     * 
     * @param orders 快递发货
     * @return 结果
     */
    public int updateOrders(Orders orders);

    /**
     * 批量删除快递发货
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrdersByIds(String ids);

    /**
     * 删除快递发货信息
     * 
     * @param ordersId 快递发货ID
     * @return 结果
     */
    public int deleteOrdersById(String ordersId);

    List<ExpressOrders> selectExpressOrdersList(Orders orders);

    int updateByOrdersId(Long ordersId, Long userId);

    int updateByOrdersId(Orders orders);

    String getLogisticsMsgByNumber(String expressNumber);

    AjaxResult KdApiOrderDistinguish(String expNo);

    void deliveryByIdAndNumber(Orders orders, Long smsBalance);
}
